﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using CodeBuilder2.Model;
using CodeBuilder2.DBM;

namespace CodeBuilder2.DAL.Connection
{
    class ConnectionDAL
    {
        // 就目前情况，是否应该把该方法声明为静态？
        internal SqlConnection CreateConnection(TargetServer ts)
        {            
            SqlConnection sc = null;
            DBManager.TSInfo = ts;
            sc = DBManager.SqlConn;
            return sc;
        }

        internal Dictionary<string, TargetServer> GetConnectedServers()
        {
            return DBManager.ConnectedServers;
        }
    }
}
